<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let result = {
      name: "zhangsan",
      age: 20,
      sex: '男'
    };
    let html = `
<div>
  <span>${result.name}</span>
  <span>${result.age}</span>
  <span>${result.sex}</span>
</div>
`;
    console.log(html);
  </script>
</body>
</html>